package com.huawei.appgallery.forum.cards.node;

import android.content.Context;
import android.view.ViewGroup;
import android.view.ViewParent;
import com.huawei.appgallery.forum.cards.card.ForumFeedRecommendCard;
import com.huawei.appgallery.forum.cards.card.ForumHorizonCard;
import com.huawei.appgallery.foundation.ui.framework.widget.PullUpListView;
import o.bsy.b;

public class ForumFeedRecommendNode extends ForumHorizonNode {
    private ForumFeedRecommendCard ˊ;

    public ForumFeedRecommendNode(Context context) {
        super(context);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        super.ˊ(viewGroup, viewGroup2);
        int i = 0;
        ViewParent viewParent = viewGroup2;
        while (viewParent != null && !(viewParent instanceof PullUpListView) && i < 20) {
            i++;
            Object parent = viewParent.getParent();
        }
        if ((viewParent instanceof PullUpListView) && this.ˊ != null) {
            this.ˊ.ˊ((PullUpListView) viewParent);
        }
        return true;
    }

    protected int ˋ() {
        return b.ˎ;
    }

    public ForumHorizonCard ˎ() {
        this.ˊ = new ForumFeedRecommendCard(this.ॱ);
        return this.ˊ;
    }
}
